import React from 'react';
import { Space, Typography } from 'antd';

export function getColumns() {
    return [
        {
            key: 'id',
            title: 'ID',
            width: 80,
            dataIndex: 'id'
        },
        {
            key: 'title',
            width: 150,
            title: '名称',
            dataIndex: 'title'
        },
    ];
}

export function getOperationColumns() {
    return [
        {
            width: 100,
            title: '操作',
            fixed: 'right',
            render: (text: string, record, index: number) => (
                <Space wrap align="center">
                    <Typography.Link>Schema</Typography.Link>
                    <Typography.Link>编辑</Typography.Link>
                </Space>
            )
        }
    ];
}
